package com.mike.employment.po;

import com.mike.employment.base.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

@Entity
@Getter
@Setter
public class Apply extends BaseEntity{

	@ManyToOne(targetEntity = Resume.class)
	@JoinColumn(name="resume_id",referencedColumnName="id")
	private Resume resume;
	@ManyToOne(targetEntity = Recruit.class)
	@JoinColumn(name="recruit_id",referencedColumnName="id")
	private Recruit recruit;
	@Column(nullable = false)
	private Integer status = 0; // 0: 未读 1：通过
	@Column(nullable = false)
	private Integer offer = 0;  // 0: 未发  1：已发
}
